package edu.utexas.ipc;

public class LinkerMessageSource implements MessageSource {

	int sourceID;
	Linker linker;
	
	LinkerMessageSource(int sourceID, Linker linker) {
		this.sourceID = sourceID;
		this.linker = linker;
	}
	
	public Message read() {
		return linker.receiveMessage(sourceID);
	}
}
